{foreach from=$goods item="good"}
	{if $good.type_of_value=='smalldocum'}
		{include file="admin/modules/realstate/fields/smalldocum.tpl"}
	{elseif $good.type_of_value=='docum'}
		{include file="admin/modules/realstate/fields/docum.tpl"}
	{elseif $good.type_of_value=='text'}
		{include file="admin/modules/realstate/fields/text.tpl"}
	{elseif $good.type_of_value=='textarea'}
		{include file="admin/modules/realstate/fields/textarea.tpl"}
	{elseif $good.type_of_value=='file'}
		{include file="admin/modules/realstate/fields/file.tpl"}
	{elseif $good.type_of_value=='flash'}
		{include file="admin/modules/realstate/fields/flash.tpl"}
	{elseif $good.type_of_value=='date'}
		{include file="admin/modules/realstate/fields/date.tpl"}
	{elseif $good.type_of_value=='chekbox'}
		{include file="admin/modules/realstate/fields/chekbox.tpl"}
	{elseif $good.type_of_value=='image'}
		{include file="admin/modules/realstate/fields/image.tpl"}
	{elseif $good.type_of_value=='select'}
		{include file="admin/modules/realstate/fields/select.tpl"}
	{elseif $good.type_of_value=='spacer'}
		{include file="admin/modules/realstate/fields/spacer.tpl"}
	{elseif $good.type_of_value=='price'}
		{include file="admin/modules/realstate/fields/price.tpl"}
	{elseif $good.type_of_value=='super_select'}
		{include file="admin/modules/realstate/fields/super_select.tpl"}
	{elseif $good.type_of_value=='super_select_ajax'}
		{ext->class_function class="realstate" func="get_super_select" name=$good.name parent=$smarty.get.product_id assign="super_data"}
		{assign var="good_parent" value=$smarty.get.product_id}
		{include file="admin/modules/realstate/fields/super_select_ajax.tpl"}
	{elseif $good.type_of_value=='elements_from_tree'}
		{include file="admin/modules/realstate/fields/elements_from_tree.tpl"}
	{/if}	
{/foreach}